package com.sfac.modules.account.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


/**
 * @Author:唐琳的爹
 * @BelongsProject:hqyj_springboot
 * @BelongsPackage:com.sfac.modules.account.domain
 * @CreateTime:2022/8/20 12:42:25
 * @ClassName:User
 */
@Data
@TableName("account_user")
public class User {
    @TableId("id")
    private String id;
    @TableField(value = "username")
    private String userName;
    @TableField(value = "password")
    private String passWord;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    private String userImage;
    @TableField(exist = false)
    private List<Role> roles;



}
